﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class ChiTietBaoCaoMatDoControl
    {
        private ChiTietBaoCaoMatDoDataAccess chiTietBaoCaoMatDoDA = new ChiTietBaoCaoMatDoDataAccess();

        public DataTable LayBangDanhSachChiTietBaoCao()
        {
            return chiTietBaoCaoMatDoDA.LayBangDanhSachChiTietBaoCao();
        }

        public void Insert(ref ChiTietBaoCaoMatDoInfo chiTietBaoCaoMatDoInfo)
        {
            chiTietBaoCaoMatDoDA.Insert(ref chiTietBaoCaoMatDoInfo);
        }

        public void Update(ChiTietBaoCaoMatDoInfo chiTietBaoCaoMatDoInfo)
        {
            chiTietBaoCaoMatDoDA.Update(chiTietBaoCaoMatDoInfo);
        }

        public void Delete(ChiTietBaoCaoMatDoInfo chiTietBaoCaoMatDoInfo)
        {
            chiTietBaoCaoMatDoDA.Delete(chiTietBaoCaoMatDoInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return chiTietBaoCaoMatDoDA.TaoMaTuDong(maGoc, batDau);
        }
    }
}
